package com.zy.oauth.service;


import com.zy.oauth.entity.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zy
 * @description: 用户管理
 * @since 2023/3/13 9:32
 */
@FeignClient(name = "t-auth")
public interface AccountService extends UserDetailsService {

    /**
     * 根据名称获取人员集合 - 模糊
     *
     * @param name
     * @return
     */

    List<Account> getUserByName(String name);

    @PostMapping("/sysUser/selectByUsername")
    Account getUserByLoginName(@RequestParam("username") String loginName);
}
